public class Movie extends InventoryItem implements Sortable {

	private String title;
	
	public Movie(String title, float price) {
		this.title = title;
		this.price = price;
	}
	
	public void displayInfo() {
		System.out.printf("Title: %s, Price: %f\n", 
			this.title, this.price);
	}
 
	public int compare(Object movie2) {
		String title1 = this.title;
		String title2 = ((Movie)movie2).title;
		return(title1.compareTo(title2));
	}
}
